home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-06 | 732 b | 39 lines | [TEXT/MSET] |
- (*
- A few new methods for class event. We should probably just revise our event
- class to contain these methods instead of changing the class of fevent.
- *)
-
- :class event+ super{ event }
-
- \ ? will be non-zero if the given key is down
-
- :m commandKey?: ( -- ? )
- konst cmdKey mods: fevent and ;m
-
- :m shiftKey?: ( -- ? )
- konst shiftKey mods: fevent and ;m
-
- :m capslockKey?: ( -- ? )
- konst alphaLock mods: fevent and ;m
-
- :m optionKey?: ( -- ? )
- konst optionKey mods: fevent and ;m
-
- ;class
-
-
- \ now we change the class of fevent to event+ !!
-
- fevent ' event+ set_class 30 ' fevent w!
-
-
- endload
-
- *** EXAMPLE USE
-
- Try this from the Mops front end window with and without the shift key
- pressed:
-
- shiftKey?: fevent .
-
-